package com.tangyuan.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tangyuan.model.UserConcern;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserConcernMapper extends BaseMapper<UserConcern> {
    void cancelUserConcern(Long userId, Long concernUserId);

    UserConcern checkIfConcern(@Param("userId") Long userId, @Param("concernUserId") Long concernUserId);

    void updateUserConcern(UserConcern userConcern);

    void updateUserConcernUserName(String nickName, Long userId);

    void updateConcernUserName(String nickName, Long userId);

    void updateUserConcernImage(String url, Long id);

}
